package com.koron.css2.newProjectCenter.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface PjCommonMapper {
    @Select("select id, name from pub_up_dealings where unit_type = '1' and is_deleted = 0")
    List<Map<String, String>> selectFactory();

    @Select("select id, name from pub_up_dealings where unit_type = '2' and is_deleted = 0")
    List<Map<String, String>> selectSupplier();

    @Select("select id, store_name as name from pub_up_store where is_deleted = 0")
    List<Map<String, String>> selectMaterial();

    @Select("select node, node_name nodeName from pub_up_time_custom")
    List<Map<String, String>> selectNode();
}
